package com.example.springbootdemo.Service;

import com.example.springbootdemo.entity.Category;
import com.example.springbootdemo.utils.PageResult;

import java.util.List;

/**
 * categoryService接口
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
public interface ICategoryService 
{
    /**
     * 查询category
     * 
     * @param cid category主键
     * @return category
     */
    public Category selectCategoryByCid(Long cid);

    /**
     * 查询category列表
     * 
     * @param category category
     * @return category集合
     */
    public PageResult selectCategoryList(Category category, int pageSize, int pageNum);
    public PageResult selectCategoryGoodsList(Category category, int pageSize, int pageNum);

    /**
     * 新增category
     * 
     * @param category category
     * @return 结果
     */
    public int insertCategory(Category category);

    /**
     * 修改category
     * 
     * @param category category
     * @return 结果
     */
    public int updateCategory(Category category);

    /**
     * 批量删除category
     * 
     * @param cids 需要删除的category主键集合
     * @return 结果
     */
    public int deleteCategoryByCids(Long[] cids);

    /**
     * 删除category信息
     * 
     * @param cid category主键
     * @return 结果
     */
    public int deleteCategoryByCid(Long cid);
}
